package com.itheima.Day13;

import java.io.*;
import java.net.Socket;

public class clientDemo {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1",10000);
        OutputStream os = socket.getOutputStream();
        os.write("heloo".getBytes());/*
        socket.shutdownOutput();
        BufferedReader br  = new BufferedReader(new InputStreamReader(socket.getInputStream()));
        String line;
        while ((line = br.readLine()) != null){
            System.out.println(line);
        }
        br.close();*/
        os.close();
        socket.close();
    }
}
